﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BI.CF.IDAL;
using BI.CF.Model;
using BI.CF.PageList;
using BI.CF.Factory;
using System.Data.SqlClient;

namespace BI.CF.BLL
{
   public class Autonym_BLL
    {
       static CF_Factory sql = CF_Factory.DataBaseType();
       Autonym_IDAL IDal = sql.IAutonym_Server();
       /// <summary>
       /// 会员实名审核显示
       /// </summary>
       /// <param name="UserName"></param>
       /// <param name="CrefiticationTimeMax"></param>
       /// <param name="CrefiticationTimeMin"></param>
       /// <param name="IdCard"></param>
       /// <param name="PageIndex"></param>
       /// <param name="PageSize"></param>
       /// <returns></returns>
       public PageList.Pager<AutonymModel> GetAutonymShow(string UserName, string MinTime, string MaxTime, string IdCard, int PageIndex, int PageSize)
       {
           return IDal.GetAutonymShow(UserName, MinTime, MaxTime, IdCard, PageIndex, PageSize);
       }
       /// <summary>
       /// 添加实名认证审核信息
       /// </summary>
       /// <param name="m"></param>
       /// <returns></returns>
       public bool Autonym_ADD(AutonymModel m)
       {
           return IDal.Autonym_ADD(m);
       }
       /// <summary>
       /// 删除实名审核信息
       /// </summary>
       /// <returns></returns>
       public bool Autonym_Dele(int id)
       {
           return IDal.Autonym_Dele(id);
       }
       /// <summary>
       /// 修改实名审核信息
       /// </summary>
       /// <returns></returns>
       public bool Autonym_Upt(AutonymModel m)
       {
           return IDal.Autonym_Upt(m);
       }
       /// <summary>
       /// 根据id查询状态
       /// </summary>
       /// <param name="ID"></param>
       /// <returns></returns>
       public AutonymModel Autonym_SeleID(int ID)
       {
           return IDal.Autonym_SeleID(ID);
       }
       /// <summary>
       /// 根据借款查询用户是否实名
       /// </summary>
       /// <param name="ID"></param>
       /// <returns></returns>
       public AutonymModel Get_Authonym_Only(int ID)
       {
           return IDal.Get_Authonym_Only(ID);
       }
    }
}
